package org.example.aienglishapp.entity.article;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Setter
@Getter
@Data
public class Favorite {
    @JsonProperty("favorite_id")
    private Long favoriteId;
    @JsonProperty("article_id")
    private Long articleId;
    @JsonProperty("user_id")
    private Long userId;
    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    public Favorite(Long userId, Long articleId) {
        this.userId = userId;
        this.articleId = articleId;
    }
}